/**
 * Created by hjx on 2017/7/26.
 */
/*定义了postsList的helpers*/
Template.postsList.helpers({
    posts: function() {
        /*submitted定义的时间字段，根据时间倒叙排序*/
        return Posts.find({}, {sort: {submitted: -1}});
    }
});
